public class Test {
    public static void main(String[] args) {
        int[][] array={{1,2,3},{4,5,6}};
        for (int[] arr: array) {
            for (int x:arr) {
                System.out.print(x+" ");
            }
            System.out.println();
        }
    }
}
